<?php
/**
 * This file is form http://findcat.cn
 *
 * @link     https://findcat.cn
 * @email    1476982312@qq.com
 */
namespace Blog\Seeder\Admin\Menu;

use Illuminate\Database\Seeder;
use Database\Seeder\MenuSeederMaker;

/**
 * 系统管理菜单创建.
 *
 * Class AdminManagerMenuSeeder
 */
class AdminManagerMenuSeeder extends Seeder
{
    use MenuSeederMaker;

    public function run()
    {
        $order = 2;

        //创建系统管理相关
        $systemManagerMenu = $this->createMenu('system_manager', 0, $order++, '系统管理', 'fa-windows');

        $this->createMenu('admin_users', $systemManagerMenu->id, $order++, '账户', 'fa-users');

        $this->createMenu('roles', $systemManagerMenu->id, $order++, '角色', 'fa-user');

        $this->createMenu('permissions', $systemManagerMenu->id, $order++, '权限', 'fa-ban');

        $this->createMenu('menu', $systemManagerMenu->id, $order++, '菜单', 'fa-bars');

        $this->createMenu('logs', $systemManagerMenu->id, $order++, '操作日志', 'fa-history');
    }
}
